package com.sfzy.mapper;

import com.sfzy.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface QuestionMapper {
    //增
    int addQuestion(Question question);
    //删
    int deleteQuestion(int id);
    //改
    int updateQuestion(Question question);
    //根据id查
    Question getQuestionById(int id);
    //分页查
    List<Question> getQuestions(Question question);
}
